
$(document).ready(function () {
    
    $('#appList').on('click','.clickMsg',function () {
        var id=$(this).attr('id');
        window.top.xhTop.showModal({
            title:'应用详情',
            content: '<iframe src="'+baseUrl+'mobile/home/msgDetail?iArtId='+id+'"  style="width: 100%;;border-style: none;padding: 0px;height:520px"  scrolling="yes"   ></iframe>',
        });
    });
    $('#teachList').on('click','.clickMsg',function () {
        var id=$(this).attr('id');
        window.top.xhTop.showModal({
            title:'教辅详情',
            content: '<iframe src="'+baseUrl+'mobile/home/msgDetail?iArtId='+id+'"  style="width: 100%;;border-style: none;padding: 0px;height:520px"  scrolling="yes"   ></iframe>',
        });
    });
    $('#planList').on('click','.clickMsg',function () {
        var id=$(this).attr('id');
        window.top.xhTop.showModal({
            title:'计划详情',
            content: '<iframe src="'+baseUrl+'mobile/home/msgDetail?iArtId='+id+'"  style="width: 100%;;border-style: none;padding: 0px;height:520px"  scrolling="yes"   ></iframe>',
        });
    });
    $('.more').click(function () {
        var type=$(this).attr('nodetype');
        var str='';
        if(type==4){
            str='应用发布';
        }else if(type==5){
            str='教辅发布';
        }else if(type==6){
            str='计划发布';
        }
        window.top.xhTop.createNewTab(str,baseUrl+'frontend/article/msgList?type='+type+'&openType=read',true);
    });
    $('#header').attr('display','none');
});